# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: test.py
@time: 2021/8/30 20:31
'''
import re
import requests

url = 'http://fund.eastmoney.com/js/fundcode_search.js'
res = requests.get(url)
data = res.text
ff = re.findall('var r = (.*?);',data)
# print(ff)
fb = eval(ff[0])
for i in fb:
    if '012722' in i:
        print(i[2])
